//
//  RootClassOfBeginDoTest.m
//  __PRODUCTNAME__
//
//  Created by li cheng on 16/09/07
//  Copyright (c) __ORGANIZATIONNAME__. All rights reserved.
//

#import "RootClassOfBeginDoTest.h"
#import "DataOfBeginDoTest.h"

@implementation RootClassOfBeginDoTest

+ (NSDictionary *)objectClassInArray{
    return @{@"data" : [DataOfBeginDoTest class]};
}

- (void)setValue:(id)value forKey:(NSString *)key{
    [super setValue:value forKey:key];
    if ([key isEqualToString:@"data"]) {
        NSMutableArray<DataOfBeginDoTest *> *mArrayOfDataOfBeginDoTest = [NSMutableArray array];
        for (NSDictionary *dic in value) {
            DataOfBeginDoTest *dataOfBeginDoTest = [DataOfBeginDoTest modelDic:dic];
            [mArrayOfDataOfBeginDoTest addObject:dataOfBeginDoTest];
        }
        _data = mArrayOfDataOfBeginDoTest;
    }
}
@end
